WP_Defender\Controller\Recaptcha D

Total Complexity 161
Dependencies 10
Dependents 3
Total lines 1,284
Lines of code 801
Logical lines of code 323
Comment lines 359
Methods 38
Properties 11

Methods 38

Method Rating Maintainability Complexity Lines of code
add_actions()
C
32 23 107
data_frontend()
B
38 15 73
load_recaptcha_preview()
A
34 8 115
display_recaptcha()
A
44 11 46
validate_captcha_field_on_login()
S
56 7 19
validate_captcha_field_on_wpmu_registration()
S
56 7 17
display_login_recaptcha()
S
43 3 67
declare_variables()
S
54 6 20
add_scripts_for_lazy_load()
S
59 6 14
validate_captcha_field_on_woo_registration()
S
59 5 14
is_woocommerce_page()
S
61 5 12
add_scripts()
S
47 3 41
__construct()
S
55 4 19
validate_captcha_field_on_comment()
S
58 4 18
maybe_validate_captcha_for_lostpassword()
S
64 5 8
validate_login_recaptcha()
S
60 4 13
get_api_url()
S
63 4 10
dashboard_widget()
S
60 3 15
recaptcha_response()
S
58 3 15
validate_captcha_field_on_woo_login()
S
60 3 14
save_settings()
S
52 2 28
validate_captcha_field_on_buddypress_group()
S
62 3 11
validate_captcha_field_on_registration()
S
64 3 10
validate_captcha_field_on_woo_checkout()
S
62 2 11
toggle_module()
S
55 1 22
validate_captcha_field_on_buddypress_registration()
S
72 2 5
display_buddypress_recaptcha()
S
65 2 9
validate_captcha_field_on_lostpassword()
S
73 2 5
display_signup_recaptcha()
S
68 2 7
script_loader_tag()
S
70 2 6
import_data()
S
69 2 7
export_strings()
S
77 2 3
is_recaptcha_settings()
S
74 2 4
script_data()
S
76 1 4
comment_form_defaults()
S
75 1 4
remove_settings()
S
91 1 2
remove_data()
S
82 1 3
to_array()
S
82 1 3